#ifndef READ_H_
#define READ_H_

#include <gtk/gtk.h>
#include <gdk/gdk.h>
#include <glib.h>

#include "stdio.h"

#define FILENAME_SIZE 256

typedef struct _reader {
	FILE * fp;
	char fn[FILENAME_SIZE];
	char charset[10];
	char font[40];
	char theme[20];
	double step;
	int scrolling;
} READER;

typedef struct _rdframe {
	GtkWindow* window;
	GtkTextView * view;
	GtkToolItem* play_icon;
	GtkToolItem* pause_icon;
	GtkScrolledWindow* scroll;
//	GTimer* timer;
} READER_FRAME;


extern READER* reader;
extern READER_FRAME* frame;

extern void reader_close();
extern void reader_load(const char* filename);
extern void reader_reload();
extern void reader_update_font(const char* font);

#endif /*READ_H_*/
